<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.opensymphony.xwork2.ActionContext,com.visualexpress.domain.*,com.visualexpress.predict.*"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<title>显示最优路径</title>
		<base href="<%=basePath%>">
		<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;"
			type="text/javascript"></script>
		<script type='text/javascript' src='dwr/engine.js'></script>
		<script type='text/javascript' src='dwr/util.js'></script>
		<script type='text/javascript' src='dwr/interface/GetMapMarks.js'></script>
		<script type='text/javascript' src='js/GetMapMarks.js'></script>
	</head>

	<body onload="getGMapMarks()" onunload="GUnload()">

<%
					ActionContext ctx = ActionContext.getContext();
					String startCity = (String) request.getAttribute("startCity");
					String endCity = (String) request.getAttribute("endCity");
					User user =  (User)session.getAttribute("user");
					//ArrayList<String> addresses = (ArrayList<String>)ctx.getSession().get("cities");
				%>
				<div style="width: 100%; height: 18px">
			<table align="right">
				<tr>
					<td>
						<strong><em><%=user.getUsername() %></em></strong>&nbsp;|
					</td>
					<td>
						<a href="jsp/user/selfInfo.jsp" title="selfInfo">个人信息</a>&nbsp;|
					</td>
					<td>
						<a href="jsp/user/changePassword.jsp" title="changePassword">修改密码</a>&nbsp;|
					</td>
					<td>
						<a href="quit.action" title="quit">注销</a>
					</td>
				</tr>
			</table>
		</div>
		<div align="center" style="width: 100%; height: 40%">
			<img border="0" src="picture/logo.jpg" />
			<form action="inputAddress.action" method="post">
				
				<table>
					<tr>
						<td>
							起始城市
						</td>
						<td>
							*
							<input type="text" name="startCity" value=<%=startCity%> />
						</td>
					</tr>
					<tr>
						<td>
							终点城市
						</td>
						<td>
							*
							<input type="text" name="endCity" value=<%=endCity%> />
						</td>
					</tr>
					<td>
						<input align="center" type="submit" value="查询">
					</td>
				</table>
			</form>
			
			</br>
			<div id="map" style="width: 700px; height: 550px"></div>

		</div>



	</body>
</html>
